home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1146 / 1146.xpi / chrome / screengrab.jar / content / Screengrab.xul < prev    next >
Extensible Markup Language  |  2009-03-09  |  5KB  |  87 lines

  1. <?xml version="1.0"?>
  2. <!DOCTYPE window [
  3.     <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
  4.     %globalDTD;
  5.     <!ENTITY % screengrabDTD SYSTEM "chrome://screengrab/locale/screengrab.dtd">
  6.     %screengrabDTD;
  7.     <!ENTITY % htmlDTD PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  8.     %htmlDTD;
  9. ]>
  10.  
  11. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  12. <?xml-stylesheet href="style.css" type="text/css"?>
  13. <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  14.     xmlns:html="http://www.w3.org/1999/xhtml"
  15.     title="Screengrab!"
  16.     id="Screengrab">
  17.  
  18.     <script type="application/x-javascript" src="chrome://global/content/nsUserSettings.js" />
  19.     <script type="application/x-javascript" src="chrome://screengrab/content/Header.js" />
  20.     <script type="application/x-javascript" src="chrome://screengrab/content/Editor.js" />
  21.     
  22.     <keyset>
  23.         <key keycode="VK_ESCAPE" oncommand="self.close();"/>
  24.     </keyset>
  25.  
  26.     <dialogheader id="logo" title="Screengrab!" description="Saving webpages since 2004..." orient="vertical" style="font-size: smaller;"/>
  27.     <vbox flex="10">
  28.         <hbox flex="10">
  29.             <groupbox flex="10">
  30.                 <caption label="Preview" />
  31.                 <box align="center" pack="center">
  32.                     <image id="grabbedImage" src=""/>
  33.                 </box>
  34.             </groupbox>
  35.             <groupbox>
  36.             <vbox>
  37.                 <hbox>
  38.                     <button id="grab" popup="grabPopup" label="Grab!" tooltiptext="Select..." />
  39.                     <menupopup id="grabPopup">
  40.                         <menuitem label="Page/Frame" oncommand="sg.Editor.grab('FrameTarget', 'CaptureViewPort')" />
  41.                         <menuitem label="Visible" oncommand="sg.Editor.grab('VisibleTarget', 'CaptureViewPort')" />
  42.                         <menuitem label="Drag Selection" oncommand="sg.Editor.grab('SelectionTarget', 'CaptureViewPort')" />
  43.                         <menuitem label="Element Selection" oncommand="sg.Editor.grab('ElementTarget', 'CaptureViewPort')" />
  44.                         <menuitem label="Window" oncommand="sg.Editor.grab('WindowTarget', 'CaptureWindow')" />
  45.                         <menuitem label="Screen" oncommand="sg.Editor.grab('ScreenTarget', 'CaptureWindow')" />
  46.                     </menupopup>
  47.                 </hbox>
  48.             </vbox>
  49.             </groupbox>
  50.         </hbox>
  51.         <hbox>
  52.             <groupbox orient="vertical">
  53.                 <description id="dimensions" value="100x100" />
  54.                 <description id="zoom" value="100%"/>
  55.             </groupbox>
  56.             <vbox flex="10"><hbox flex="1"></hbox><hbox>
  57.             <groupbox orient="horizontal" flex="10">
  58.                 <textbox id="fileName" value="Filename" flex="10" />
  59.                 <button id="fileType" popup="fileTypePopup" label=".png" />
  60.                 <menupopup id="fileTypePopup">
  61.                     <menuitem type="radio" name="fileType" label=".png" checked="true" oncommand="document.getElementById('fileType').label = this.label" />
  62.                     <menuitem type="radio" name="fileType" label=".gif" oncommand="document.getElementById('fileType').label = this.label" />
  63.                     <menuitem type="radio" name="fileType" label=".jpg" oncommand="document.getElementById('fileType').label = this.label" />
  64.                     <menu label="jpg quality...">
  65.                         <menupopup>
  66.                             <menuitem checked="true" type="radio" name="quality" label="100%" />
  67.                             <menuitem type="radio" name="quality" label="75%" />
  68.                             <menuitem type="radio" name="quality" label="50%" />
  69.                             <menuitem type="radio" name="quality" label="25%" />
  70.                         </menupopup>
  71.                     </menu>
  72.                 </menupopup>
  73.             </groupbox>
  74.             <groupbox orient="horizontal">
  75.                 <button label="Copy" oncommand="sg.Editor.doAction('CopyAction')" />
  76.                 <button label="Save" oncommand="sg.Editor.doAction('SaveAction')" />
  77.                 <button label="Send to..." popup="uploadPopup" />
  78.                 <menupopup id="uploadPopup">
  79.                     <menuitem label="ScrnShots" oncommand="sg.Editor.doScrnShotsUpload()" />
  80.                     <!--menuitem label="Flickr" /-->
  81.                 </menupopup>
  82.             </groupbox>
  83.             </hbox></vbox>
  84.         </hbox>
  85.     </vbox>
  86. </window>
  87.